*Chapter 5 ANM data
*Use 'ELF data for Chapters 4 and 6'

*Table 4.1: Industrialization and Ethnic Change
reg elffd LogCO2fd MigPct6085fd if pop60>50, r
reg elffd LogCO2fd MigPct6085fd elf61 LogCO2_61 MigPercent1960 if pop60>50, r
reg elffd LogCO2fd MigPct6085fd gdpfd if pop60>50, r
reg elffd LogCO2fd MigPct6085fd polyarchy6185 if pop60>50, r
reg elffd LogCO2fd MigPct6085fd schoolfd if pop60>50, r
reg elffd LogCO2fd MigPct6085fd revenuegdpfd if pop60>50, r
reg elffd LogCO2fd MigPct6085fd infmort6185 if pop60>50, r
reg elffd LogCO2fd MigPct6085fd newspapersfd if pop60>50, r
reg largest6185 LogCO2fd MigPct6085fd if pop60>50, r

*Table 4.2: Industrialization and Ethnic Change, with Alternative Proxies for Industrialization
reg elffd cementpcfd MigPct6085fd if pop60>50, r
reg elffd urb8560fd MigPct6085fd if pop60>50, r

*Figure 4.1: Changes in ELF and Carbon Emissions, ANM data
replace clock=3
replace clock=9 if ISO=="AUT"
replace clock=1 if ISO=="BFA"
replace clock=1 if ISO=="BDI"
replace clock=6 if ISO=="BRN"
replace clock=12 if ISO=="CHE"
replace clock=10 if ISO=="CHL"
replace clock=6 if ISO=="CMR"
replace clock=9 if ISO=="COL"
replace clock=6 if ISO=="ECU"
replace clock=9 if ISO=="GBR"
replace clock=9 if ISO=="GTM"
replace clock=6 if ISO=="HUN"
replace clock=9 if ISO=="ISL"
replace clock=9 if ISO=="KEN"
replace clock=12 if ISO=="KOR"
replace clock=2 if ISO=="LAO"
replace clock=6 if ISO=="LBR"
replace clock=9 if ISO=="LKA"
replace clock=6 if ISO=="MEX"
replace clock=4 if ISO=="MLI"
replace clock=2 if ISO=="MRT"
replace clock=1 if ISO=="NGA"
replace clock=6 if ISO=="PER"
replace clock=1 if ISO=="PRY"
replace clock=9 if ISO=="ROU"
replace clock=6 if ISO=="SYR"
replace clock=9 if ISO=="UGA"
replace clock=5 if ISO=="SGP"
replace clock=9 if ISO=="SWE"
replace clock=8 if ISO=="TGO"
replace clock=9 if ISO=="URY"
replace clock=5 if ISO=="VNM"
replace clock=9 if ISO=="VUT"
replace clock=2 if ISO=="WSM"
replace clock=10 if ISO=="YEM"
replace clock=7 if ISO=="ZAR"
twoway (lfitci elffd LogCO2fd) (scatter elffd LogCO2fd, mlabel(ISO) mcolor(black) msize(small) mlabcolor(black) mlabvpos(clock)) if pop60>50 & LogCO2fd<3, ytitle(Change in ELF 1961-1985) xtitle(Change in Carbon Emissions per capita 1961-1985 (log)) legend(off)

*Appendix
*Table A4.1, Panel A
summarize elf61 elffd LogCO2_61 LogCO2fd MigPct6085fd largest6185 if data==1 & pop60>50

*Table A4.2: Industrialization and Ethnic Change, Sub-Samples
reg elffd LogCO2fd MigPct6085fd if ssafrica==0 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if ssafrica==1 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if americas==0 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if asia==0 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if europe==0 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if british==0 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if oneeg==0 & pop60>50, r
reg elffd LogCO2fd MigPct6085fd if pop60>500, r
